import logging

from selenium import webdriver
from zoukao3.Page.Page import Page
from zoukao3.Page.Page2 import Page1

import pytest
class Test_case():
    @pytest.fixture(scope='function')
    def driver(self):
        # 配置测试脚本支持Chrome浏览器
        driver=webdriver.Edge()
        driver.maximize_window()
        driver.implicitly_wait(10)
        yield driver
        driver.quit()

    def test_login(self,driver):
        try:
            po=Page(driver)
            po.luoji_01()
            logging.info('end')
        except ImportError as e:
            print(e)

    def test_select(self,driver):
        po=Page1(driver)
        po.luoji_02()
